<script setup lang="ts">


</script>

<template>
  <!--  <a href="/home">首页</a>-->
  <!--  <a href="/news">新闻</a>-->
  <!--  <a href="/about">关于</a>-->
  <router-link to="/home" active-class="on">首页</router-link>
  <router-link to="/news" active-class="on">新闻</router-link>
  <router-link to="/about" active-class="on">关于</router-link>

  <!--  渲染路由页面组件-->
  <router-view></router-view>
</template>

<style scoped>
a{
  padding: 5px 10px;
  text-decoration: none;
  color: #2c3e50;
  background-color: rgba(106, 108, 232);
}
.on {
  background-color: #50a3d0;
  color: white;
}

</style>
